﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace MediaCenter
{
    class StartSpotify
    {
        public StartSpotify()
        {
        }

        internal void lauchSpotify()
        {
            ProcessStartInfo psI = new ProcessStartInfo("C:\\Program Files (x86)\\Spotify\\spotify.exe");
            Process p = new Process();
            psI.LoadUserProfile = true;
            psI.UseShellExecute = false;
            psI.RedirectStandardInput = true;
            psI.RedirectStandardOutput = true;
            p.StartInfo = psI;
            p.Start();   
        }
    }
}
